#!/bin/bash
pid=`ps ax | grep -i 'datacheck-service' | grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
        echo "No datacheck-service running."
else
        echo "The datacheck-service(${pid}) is running..."
        kill ${pid}
        echo "Send shutdown request to datacheck-service(${pid}) OK"
fi